<?xml version="1.0" encoding="utf-8"?>
<form addrulepath='/administrator/components/com_doska/models/rules'>
	<fieldset>
		
		<field name="id" type="hidden" default=""/>
		<field name="id_user" type="hidden" default=""/>
	
	
		<field name="title" type="text" default="" label="COM_DOSKA_MESSAGE_TITLE" description="COM_DOSKA_MESSAGE_TITLE_DESCRIPTION" filter="raw" class="inputbox validate-title" validate='name'/>
		
		<field name="alias" type="text" default="" label="COM_DOSKA_MESSAGE_ALIAS" description="COM_DOSKA_MESSAGE_ALIAS_DESCRIPTION" filter="raw"/>
		<field name="text" type="editor"  label="COM_DOSKA_MESSAGE_TEXT" description="COM_DOSKA_MESSAGE_TEXT_DESCRIPTION" filter="raw" buttons="true"/>
		<field name="state" type="list" label="JSTATUS"
					description="JFIELD_PUBLISHED_DESC" class="chzn-color-state"
					filter="intval" size="1" default="1"
				>
					<option value="1">
						JPUBLISHED</option>
					<option value="0">
						JUNPUBLISHED</option>
					<option value="2">
						JARCHIVED</option>
					<option value="-2">
						JTRASHED</option>
				</field>
	</fieldset>
	
	
<fields name="images">		
		<field name="img" type="media"  label="COM_DOSKA_MESSAGE_IMG" description="COM_DOSKA_MESSAGE_IMG_DESCRIPTION" directory="stories"/>
	
		<field name="mini1" type="media"  label="COM_DOSKA_MESSAGE_IMG1" description="COM_DOSKA_MESSAGE_IMG_DESCRIPTION" directory="stories"/>
		<field name="mini2" type="media"  label="COM_DOSKA_MESSAGE_IMG2" description="COM_DOSKA_MESSAGE_IMG_DESCRIPTION" directory="stories"/>
		<field name="mini3" type="media"  label="COM_DOSKA_MESSAGE_IMG3" description="COM_DOSKA_MESSAGE_IMG_DESCRIPTION" directory="stories"/>
		
</fields>	

	<fieldset name="mesinfo">
		
		<field name="price" type="text" default="" label="COM_DOSKA_MESSAGE_PRICE" description="COM_DOSKA_MESSAGE_PRICE_DESCRIPTION" class="required validate-numeric" filter="raw"/>
		
		
		<field name="town" type="text" default="" label="COM_DOSKA_MESSAGE_TOWN" description="COM_DOSKA_MESSAGE_TOWN_DESCRIPTION" filter="raw" required="true"/>
		
		<field name="id_categories" type="doskacat" default="" label="COM_DOSKA_CATEGORY" description="COM_DOSKA_CATEGORY_DESCRIPTION" filter="raw"/>
		
		<field name="id_types" type="doskatype" default="" label="COM_DOSKA_TYPE" description="COM_DOSKA_TYPE" filter="raw"/>
	</fieldset>
	
	
	<field name="created" type="calendar" label="COM_DOSKA_FIELD_CREATED_LABEL"
			description="COM_DOSKA_FIELD_CREATED_DESC" size="22"
			format="%Y-%m-%d %H:%M:%S" filter="user_utc" />
			
	<field name="modified" type="calendar" class="readonly"
			label="JGLOBAL_FIELD_MODIFIED_LABEL" description="COM_DOSKA_FIELD_MODIFIED_DESC"
			size="22" readonly="true" format="%Y-%m-%d %H:%M:%S" filter="user_utc" />


	<field name="publish_up" type="calendar"
			label="COM_DOSKA_FIELD_PUBLISH_UP_LABEL" description="COM_DOSKA_FIELD_PUBLISH_UP_DESC"
			format="%Y-%m-%d %H:%M:%S" size="22"
			filter="user_utc" />

	<field name="publish_down" type="calendar"
			label="COM_DOSKA_FIELD_PUBLISH_DOWN_LABEL" description="COM_DOSKA_FIELD_PUBLISH_DOWN_DESC"
			format="%Y-%m-%d %H:%M:%S" size="22"
			filter="user_utc" />

	<field name="hits" type="text" label="JGLOBAL_HITS"
			description="COM_DOSKA_FIELD_HITS_DESC" class="readonly" size="6"
			readonly="true" filter="unset" />
	
		
	<fieldset name="metadata" label="JGLOBAL_FIELDSET_METADATA_OPTIONS">
			
			<field name="metakey" type="textarea"
				label="JFIELD_META_KEYWORDS_LABEL" description="JFIELD_META_KEYWORDS_DESC"
				rows="3" cols="30" />

			<field name="metadesc" type="textarea"
				label="JFIELD_META_DESCRIPTION_LABEL" description="JFIELD_META_DESCRIPTION_DESC"
				rows="3" cols="30" />
</fieldset>
	
	<fields>
		
		<field name="introtext" label="COM_DOSKA_FIELD_INTROTEXT" />
		<field name="fulltext" label="COM_DOSKA_FIELD_FULLTEXT" />
		
	</fields>
	
	<fields name="params">
        <fieldset
            name="params"
            label="JGLOBAL_FIELDSET_DISPLAY_OPTIONS"
        >
            <field
                name="show_category"
                type="list"
                label="COM_DOSKA_CATEGORY_FIELD_SHOW_CATEGORY_LABEL"
                description="COM_DOSKA__CATEGORYFIELD_SHOW_CATEGORY_DESC"
                default="" class="chzn-color-state"
            >
                <option value="">JGLOBAL_USE_GLOBAL</option>
                <option value="0">JHIDE</option>
                <option value="1">JSHOW</option>
            </field>
			<field
                name="show_type"
                type="list"
                label="COM_DOSKA_CATEGORY_FIELD_SHOW_TYPE_LABEL"
                description="COM_DOSKA__CATEGORYFIELD_SHOW_TYPE_DESC"
                default="" class="chzn-color-state"
            >
                <option value="">JGLOBAL_USE_GLOBAL</option>
                <option value="0">JHIDE</option>
                <option value="1">JSHOW</option>
            </field>
			<field
                name="show_town"
                type="list"
                label="COM_DOSKA_CATEGORY_FIELD_SHOW_TOWN_LABEL"
                description="COM_DOSKA__CATEGORYFIELD_SHOW_TOWN_DESC"
                default="" class="chzn-color-state"
            >
                <option value="">JGLOBAL_USE_GLOBAL</option>
                <option value="0">JHIDE</option>
                <option value="1">JSHOW</option>
            </field>
			
        </fieldset>
    </fields>
    
    
    <fieldset name="accesscontrol">
        <field name="asset_id" type="hidden" filter="unset" />
        <field name="rules"
                type="rules"
                label="JFIELD_RULES_LABEL"
                translate_label="false"
                filter="rules"
                validate="rules"
                class="inputbox"
                component="com_doska"
                section="message"
        />
    </fieldset>
    
    
    
    
</form>